package com.sumainfor.pc.market.service;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.dao.RdEpcStyleMapper;
import com.sumainfor.pc.market.dao.RdFacilityMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 工程部选择房源面积朝向的时候 选择房源特色列表
 */
@Service
public class RdEpcStyleService implements Serializable {

    private ReentrantLock lock = new ReentrantLock(false);

    Logger log = LoggerFactory.getLogger(RdEpcStyleService.class);// 日志

    @Autowired
    private RdEpcStyleMapper rdEpcStyleMapper;
    /*
     * 查询工程部选择房源面积朝向的时候 选择房源特色列表
     * */
    public JsonResult getRdEpcStyleList(){
        JsonResult result=new JsonResult();
        List<Map<String,Object>> list=rdEpcStyleMapper.getRdEpcStyleList();
        if (list!=null){
            result.put(list);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
